package de.snom;

import org.eclipse.jface.fieldassist.TextContentAdapter;
import org.eclipse.swt.widgets.Control;

import de.snom.HttpDailer.Command;

public class MyContentAdapter extends TextContentAdapter {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.fieldassist.IControlContentAdapter#insertControlContents(org.eclipse.swt.widgets.Control,
	 *      java.lang.String, int)
	 */
	public void insertControlContents(Control control, String text,
			int cursorPosition) {
		new Thread(new HttpDailer(text,Command.DAIL,control.getShell())).start();
		setControlContents(control, "", cursorPosition);
	}


}
